package com.silp.mapview;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class SilpMapviewActivity extends MapActivity {
    private MapView mMap;
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mMap.
        
		
        
    }

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		mMap=(MapView)findViewById(R.id.mymap);
        mMap.setBuiltInZoomControls(true);
        getMenuInflater().inflate(R.menu.mymenu, menu);
		return super.onCreateOptionsMenu(menu);
		
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case R.id.item1:
			mMap.setTraffic(true);
			
			
			break;

		case R.id.item2:
			mMap.setSatellite(true);
			break;
		}
		return super.onOptionsItemSelected(item);
	}

	@Override
	protected void onRestart() {
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected boolean isRouteDisplayed() {
		// TODO Auto-generated method stub
		return false;
	}
	
}